#pragma once
#include "Shape.h"
#include "Intersection.h"
class Sphere : public Shape{
public:
	Sphere(vec4 _pos, vec3 _rot, float _rad);
	~Sphere();

	float radius(){ return rad; }
	void radius(float _rad){ rad = _rad; }

	bool intersect(Intersection &_int);

	vec4 getColor(Intersection &_int);

	vec3 getMaxBound();
	vec3 getMinBound();
	bool isBounded(){ return true; }
	vec3 getCenter();
private:
	float rad;
};

